<?php

namespace App\System\Cms\Repositories;



use App\System\Base\Repositories\Repository;

use App\System\Cms\Model\CmsFeedback;

class CmsFeedbackRepository extends Repository
{
    //
    public function createdNormal($query,$user_id)
    {


        $cmsFeedBackObj = new CmsFeedback();
        $cmsFeedBackObj->mobile = $query->mobile;
        $cmsFeedBackObj->type = $query->action;
        $cmsFeedBackObj->title = '';
        $cmsFeedBackObj->content = $query->content;
        $cmsFeedBackObj->user_id = $user_id;
        return $cmsFeedBackObj->save();

    }
    public function createOtherFedd($data){
      return  CmsFeedback::create($data);
    }
}
